const express = require('express');
const router = express.Router();
const { createCustomer, getCustomers, updateCustomer, deleteCustomer, getCustomerById } = require('../controllers/customerController');

// 创建新客户
router.post('/', createCustomer);

// 获取客户列表
router.post('/list', getCustomers);

// 获取单个客户信息
router.post('/detail', getCustomerById);

// 更新客户信息
router.post('/update', updateCustomer);

// 删除客户
router.post('/delete', deleteCustomer);

module.exports = router;